package com.lvmama.client.rhino;

import com.github.pagehelper.PageInfo;
import com.lvmama.common.result.Result;
import com.lvmama.pojo.entity.rhino.topic.PositionAnalysis;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * @param
 * @Title:
 * @Author:wangpeng
 * @Description: TODO(这里用一句话描述这个方法的作用)
 * @return
 * @throws
 */
@FeignClient("rhino-web-service")
@RequestMapping("${server.servlet.context-path}")
public interface PositionAnalysisClient {

	@RequestMapping(method = RequestMethod.POST, value = "/positionAnalysis/queryList", consumes = "application/json")
	Result<PageInfo<PositionAnalysis>> queryList(@RequestBody PositionAnalysis positionAnalysis);

	@RequestMapping(method = RequestMethod.POST, value = "/positionAnalysis/chartData", consumes = "application/json")
	Result<Map<String, Object>> chartData(@RequestBody PositionAnalysis dto);

	@RequestMapping(method = RequestMethod.POST, value = "/positionAnalysis/getPageChartData", consumes = "application/json")
	Result<Map<String, Object>> getPageChartData(@RequestBody PositionAnalysis dto);

	@RequestMapping(method = RequestMethod.POST, value = "/positionAnalysis/queryDetailByCode", consumes = "application/json")
	Result<List<PositionAnalysis>> queryDetailByCode(@RequestBody PositionAnalysis dto);
}
